﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Collection
{
    internal class ArrayListDemo
    {
        //static void Main(string[] args)
        //{
        //    //存在不安全类型，装箱拆箱性能低
        //    ArrayList arrayList = new ArrayList();
        //    arrayList.Add(123);
        //    arrayList.Add("abc");
        //    arrayList.Insert(0, 111); 
        //    Console.WriteLine(arrayList[0] is int);
        //    Console.WriteLine(arrayList[1] is string);
        //}
    }
}
